<template>
  <div class="oneStep">
    <header>
      <span>任务列表</span>
      <el-select v-model="model" placeholder="选择报告模板">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        ></el-option>
      </el-select>
      <img class="close" src="/images/button/close.png" alt />
    </header>
    <el-row>
      <img class="line" src="/images/report/litline.png" alt />
    </el-row>
    <el-table
      :data="taskListData"
      border
      highlight-current-row
      @current-change="handleCurrentChange"
    >
      <el-table-column type="index" width="50"></el-table-column>
<!--      <el-table-column prop="id" label="序号" width="180"></el-table-column>-->
      <el-table-column prop="name" label="任务名称" width="880"></el-table-column>
      <el-table-column prop="beginDate" label="时间"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  created() {},
  props: ["taskListData"],
  data() {
    return {
      taskSelection: null,
      options: [
        {
          value: "选项1",
          label: "灾害模板"
        },
        {
          value: "选项2",
          label: "地震模板"
        }
      ],
      model: "地震模板"
    };
  },
  methods: {
    handleCurrentChange(val) {
      this.taskSelection = val;
    },
    chose(val) {
      console.log(val);
    }
  }
};
</script>

<style lang="scss">
.oneStep {
  height: 100%;
  header {
    width: 100%;
    font-size: 0.2rem;
    font-weight: 400;
    color: #2fd5ff;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .arrow {
      margin-right: 1.06rem;
    }
    .close {
      cursor: pointer;
      padding: 5px 7px;
    }
  }
  .line {
    width: 100%;
  }
  .el-table {
    height: 70%;
  }
  .el-table__body-wrapper {
    overflow: scroll;
    height: 91%;
  }
  .el-table__body tr.current-row > td {
    background-color: #b67d10 !important;
  }
  .el-select {
    .el-input__inner {
      background: white;
      border-radius: 2px;
      border: 1px solid #00acc4;
      color: #000000;
    }
  }
}
.el-select-dropdown {
  border: none;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(19, 135, 178, 0.9) 0%,
    rgba(29, 74, 161, 0.9) 100%
  );
  .el-select-dropdown__item {
    color: #fff;
    padding: 0 10px;
    margin: 3px 4px;
    // background-color: #102243;
    background: #0b152c;
  }
  .el-select-dropdown__item.hover,
  .el-select-dropdown__item:hover {
    background-color: #b67d10;
  }
  .el-select-dropdown__list{
    padding: 0 0 5px 0;
  }
}
</style>
